import sys, getopt, logging
from owhandler import OWHandler

def main():
    try:
        opts, args = getopt.getopt(sys.argv[1:], "d", ["debug"])
    except getopt.GetoptError:
        pass
    for opt, arg in opts: 
        if opt in ("-d", "--debug"):
            logging.basicConfig(level=logging.DEBUG)

    owh = OWHandler("/etc/sensors.conf")
    owh.run()
    

main()

